"use strict";

module.exports = function(sequelize, DataTypes) {
  var SavingInfo = sequelize.define("savingInfo", {
    accountname: { type: DataTypes.STRING, allowNull: false },
    savingbank: {type: DataTypes.STRING, allowNull: false },
    accounttype: {type: DataTypes.STRING, allowNull: false },
    moneytype: {type: DataTypes.STRING, allowNull: false },
    operationtype: {type: DataTypes.STRING, allowNull: false },
    savingcount: {type: DataTypes.INTEGER, allowNull: false },
    savingdec: {type: DataTypes.STRING, allowNull: false },
    usetime: {type: DataTypes.DATE, allowNull: false }
  },{
      freezeTableName: false,
      tableName: 'savingInfo',
      timestamps: false
  });

  return SavingInfo;
};

